﻿using MS.Core.JsonConverters;
using SqlSugar;
using Newtonsoft.Json;

namespace ReportDesignerServer.DataModel
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    [SugarTable("sys_hiprint")]
    public class SysHiprint
    {
        [JsonConverter(typeof(LongToStringConverter))]
        [SugarColumn(IsPrimaryKey = true)]
        public long id { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? templateName { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? templateText { get; set; }

        [SugarColumn(IsNullable = true)]
        public string? templateCode { get; set; }

        [SugarColumn(IsIgnore =true)]
        public object? templateObject { get; set; }

        [SugarColumn(IsIgnore = true)]
        public List<SysHiprint>? children { get; set; }
    }
}
